<%@ page contentType="text/html; charset=utf-8"%>
<%@ taglib uri="http://java.sun.com/jstl/core_rt" prefix="c"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn"%>
<%@ taglib uri="http://www.springframework.org/tags" prefix="spring"%>
<%@ taglib uri="http://www.springframework.org/tags/form" prefix="form"%>
<%@taglib prefix="shiro" uri="http://shiro.apache.org/tags" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html lang="en">
<head>
    <meta charset="utf-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>山西省审计厅档案综合管理系统</title>
    <link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet">
    <link rel="shortcut icon" href="${basePath}/img/logo.ico"/>
    <link rel="bookmark" href="${basePath}/img/logo.ico"/>
    <jsp:include page="/inc/head.jsp" flush="true"/>
    <jsp:include page="/inc/footer.jsp" flush="true"/>
    <script src="${basePath }/js/main.js"></script>
    <style type="text/css">
        .breadcrumb {margin-bottom: 0px !important;}
    </style>
</head>
<body class="hold-transition skin-blue sidebar-mini">
<div class="wrapper">
    <header class="main-header">
        <a href="#" class="logo">
            <span class="logo-mini">AMS</span>
            <span class="logo-lg">档案综合管理系统</span>
        </a>
        <nav class="navbar navbar-static-top">
            <a href="#" class="sidebar-toggle" data-toggle="push-menu" role="button">
            </a>

            <div class="navbar-custom-menu" style="margin-right: 10px;">
                <ul class="nav navbar-nav">
                    <li class="dropdown user user-menu">
                        <a href="#" class="dropdown-toggle" data-toggle="dropdown">
                            <i class="fa fa-user fa-fw"></i>
                            <span class="hidden-xs"> ${objMap.user.username }&nbsp;&nbsp;&nbsp;</span>
                            <i class="fa fa-caret-down" aria-hidden="true"></i>
                        </a>
                        <ul class="dropdown-menu">
                            <li class="user-header">
                              <%--  <img src="/img/portrait86x86.png" class="img-circle" alt="User Image">
                                <p>
                                    ${objMap.user.userName }（${objMap.user.userOrgcode }）
                                </p>--%>

                                   <img src="/img/portrait86x86.png"   class="img-circle" alt="User Image">
                                  <%--<a href="javascript:Tab.addTab('个人信息', '${pageContext.request.contextPath }'+'/pcwindow/userDetail');" class="none">--%>
                                   <p><small>${objMap.user.realname } - ${objMap.organization }</small></p>
                              <%-- </a>--%>
                            </li>
                            <!-- Menu Footer-->
                            <li class="user-footer" style="margin-top: 10px">
                                <div class="pull-left">
                                    <a href="javascript:Tab.addTab('修改密码', '${pageContext.request.contextPath }'+'/pcwindow/modifiedPassword');" class="btn btn-default btn-flat">
                                        <i class="fa fa-user fa-fw"></i>修改密码
                                    </a>
                                </div>
                                <div class="pull-right">
                                    <a href="javascript:Tab.addTab('退出登录', '${pageContext.request.contextPath }'+'/pcwindow/logout');" class="btn btn-default btn-flat">
                                        <i class="fa fa-sign-out fa-fw"></i>退出系统
                                    </a>
                                </div>
                            </li>
                        </ul>
                    </li>
                </ul>
            </div>
        </nav>
    </header>
    <aside class="main-sidebar">
        <section class="sidebar">
            <ul class="sidebar-menu" data-widget="tree">
                <c:forEach var="upmsPermission" items="${mainMenu}" varStatus="status">
                    <c:if test="${upmsPermission.fatherPoint == 0}">
                        <!-- 一级菜单 无二级菜单 -->
                        <c:if test="${upmsPermission.isJump == 0}">
                            <li>
                                <a href="javascript:Tab.addTab('${upmsPermission.menuname}', '${pageContext.request.contextPath }'+'${upmsPermission.url}',1);" >
                                    <i class="${upmsPermission.icon}"></i> <span>${upmsPermission.menuname}</span>
                                </a>
                            </li>
                        </c:if>
                        <!-- 一级菜单 有二级菜单 -->
                        <c:if test="${upmsPermission.isJump == 1}">
                            <li class="treeview">
                                <a href="#" onclick="getMenuName('${upmsPermission.menuname}')">
                                    <i class="${upmsPermission.icon}"></i> <span>${upmsPermission.menuname}</span>
                                    <span class="pull-right-container">
                                        <i class="fa fa-angle-left pull-right"></i>
                                    </span>
                                </a>
                                <ul class="treeview-menu">
                                    <c:forEach var="subUpmsPermission" items="${mainMenu}">
                                        <c:if test="${subUpmsPermission.fatherPoint == upmsPermission.menuid}">
                                            <li>
                                                <%--<a href="javascript:Tab.addTab('${subUpmsPermission.menuname}', '${pageContext.request.contextPath }'+'${subUpmsPermission.url}');">--%>
                                                    <%--<i class="fa fa-circle-o"></i> ${subUpmsPermission.menuname}--%>
                                                <%--</a>--%>
                                                <a href="#" onclick="getTreeMenu('${subUpmsPermission.menuname}','${pageContext.request.contextPath }'+'${subUpmsPermission.url}',2)">
                                                    <i class="fa fa-circle-o"></i> ${subUpmsPermission.menuname}
                                                </a>
                                            </li>
                                        </c:if>
                                    </c:forEach>
                                </ul>
                            </li>
                        </c:if>
                    </c:if>
                </c:forEach>
            </ul>
        </section>
    </aside>
    <div id="page-wrapper" class="content-wrapper">

    </div>
    <!-- /.content-wrapper -->
    <footer class="main-footer">
        <strong>Copyright &copy; 2019-2020 <font style="color: #0b93d5">INNO KING</font>.</strong>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;All rights reserved.
        <div class="pull-right hidden-xs"><b>Version</b> 2.0</div>
    </footer>
</div>


<script>
    $(function(){
        Tab.addTab('首页', '${basePath }/pcwindow/dashboard',1);
    });
</script>
</body>
</html>